import axios from 'axios';
import type * as Type from './taskInfo.d';

export function annoTask(id: string){
  return axios.get<Type.TaskInfoResponse>(`/anno/task/${id}`);
}

export function getUserList(id: number) {
  return axios.post<Type.UserListResponse>('/anno/result/users', { taskId: id })
}